# Maintainer: Luca Weiss <luca@z3ntu.xyz>
# Contributor: Brandon Boese <brandonboese@protonmail.com>
pkgname=lomiri-terminal-app
pkgver=2.0.2
pkgrel=0
pkgdesc="A terminal app for desktop and mobile devices"
url="https://gitlab.com/ubports/development/apps/lomiri-terminal-app"
# armhf: blocked by lomiri-ui-toolkit
arch="all !armhf"
license="GPL-3.0-only"
depends="
	gsettings-qt
	lomiri-ui-extras
	lomiri-ui-toolkit
	qmltermwidget
	"
makedepends="
	click-dev
	cmake
	cmake-extras
	gnome-desktop-dev
	lomiri-trust-store-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	samurai
	"
checkdepends="
	py3-dbusmock
	py3-xdg
	xvfb-run
	"
source="https://gitlab.com/ubports/development/apps/lomiri-terminal-app/-/archive/v$pkgver/lomiri-terminal-app-v$pkgver.tar.gz"
subpackages="$pkgname-doc $pkgname-lang"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # no tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=ON \
		-DCMAKE_BUILD_TYPE=None \
		-DCLICK_MODE=OFF \
		-DINSTALL_TESTS=OFF
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
86ef104e5ee98fbaec876b2ca2c8f013f0e6228ecd80afc68c111522ef1536757bfabe52cffc22b9e12f5d38dbe195835dfe728fb62363f9c2c15c1d28c37be2  lomiri-terminal-app-v2.0.2.tar.gz
"
